<?php

class formhelper_Multioptions
{
	public function getcountry()
	{
		$db = Zend_Db_Table::getDefaultAdapter();
		$entry = new Zend_Db_Select($db);
		$entry->from('country');
		$entry->where('Name IS NOT NULL');
		$countrys = $entry->query()->fetchall();
		
		$i = 0;
		foreach($countrys as $array){
			$land[$i] = array(
					'key' => ($array['id']),
					'value'  => ($array['name']),
			);
			++$i;
		}
		
		return $land;
	}
}
?>